package com.fujimana.android.manacode.converter.token;

import com.fujimana.android.manacode.converter.Decorator;
import com.fujimana.android.manacode.converter.Options;
import com.fujimana.android.manacode.converter.Token;

public class LiteralToken extends Token {

	public static final String TYPE = LiteralToken.class.getName();
	
	public static final Decorator DECORATE = new LiteralDecorator();
	
	public LiteralToken(String value,Options options) {
		super(value, options);
	}

	@Override
	public String getFormatedValue() {
		return getValue();
	}
	
	static class LiteralDecorator implements Decorator {

		@Override
		public String decorate() {
			return "color: #4169E1;";
		}
		
		@Override
		public boolean isDecorate(String value) {
			return true;
		}
	}

}
